package com.lq.schoolshop.util;

/**
 * @Author
 * @Date2021/1/13 20:39
 * @Version V1.0
 * 为什么努力？想把钱都赚够，一心跳广场舞曲去。
 **/
public class GetIpAddress {
    public static final String IP_URL = "http://whois.pconline.com.cn/ip.jsp?";

    public static String getRealAddressByIP(String ip)
    {
        String address = "xx";
        String rspStr = IPlocalUtil.sendPost(IP_URL,"ip="+ip);
       // System.out.println(rspStr);
        if (rspStr!=null&&rspStr!="")
        {
            address = rspStr;

        }else {
            System.out.println("获取地理位置异常"+ip);
        }
        return address;
    }

}
